package com.example.design.ddd.practice2.adapter.driven.persistence.payment;

import com.example.design.ddd.practice2.domain.Payment.repository.PaymentGateway;
import com.example.design.ddd.practice2.domain.Payment.valueobject.PaymentRequest;
import com.example.design.ddd.practice2.domain.Payment.valueobject.PaymentResult;

// 微信支付实现示例
public class WechatPaymentGateway implements PaymentGateway {
    @Override
    public PaymentResult process(PaymentRequest request) {
        // 调用微信支付API的具体实现
        // ...
        return new PaymentResult("0", "WX202308012345");
    }
}